#include <Gosu/AutoLink.hpp>
#include <Gosu/Gosu.hpp>

class Ventana : public Gosu::Window{
    
public:
    Ventana() : Gosu::Window(800, 600, false){
        std::wstring directorio = Gosu::sharedResourcePrefix();

        imagen = new Gosu::Image(graphics(), directorio + L"imagen.png");
    }

    ~Ventana(){
        delete imagen;
    }

    void update(){ }

    void draw(){
        imagen -> draw(0,0,0);
    }

    void buttonDown(Gosu::Button B){
            close();
    }
private:
    Gosu::Image * imagen;
};

int main(){
    Ventana V;
    V.show();

    return 0;
}
